<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
<s:property value="#application.systemInfor.webName"/>－品牌
</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/tools/jquery-1.4.2.min.js"></script>

<style>
#banner UL {LIST-STYLE-TYPE: none}

#banner {
	BORDER-BOTTOM: #333 1px solid;  BORDER-LEFT: #333 1px solid; WIDTH: 582px; BACKGROUND: #333; HEIGHT: 348px; OVERFLOW: hidden; BORDER-TOP: #333 1px solid; TOP: 0px; BORDER-RIGHT: #333 1px solid; 
}
#banner UL LI {
	FLOAT: left
}
#banner UL LI IMG {
	DISPLAY: block
}
#butImage {
	POSITION:relative; TOP: -20px; left:470px;
}
#butImage LI {
	BORDER-BOTTOM: #fff 1px solid; TEXT-ALIGN: center; BORDER-LEFT: #fff 1px solid; LINE-HEIGHT: 16px; MARGIN: 0px 3px; WIDTH: 16px; FONT-FAMILY: Arial; BACKGROUND: #333; FLOAT: left; HEIGHT: 16px; COLOR: #fff; FONT-SIZE: 10px; BORDER-TOP: #fff 1px solid; CURSOR: pointer; BORDER-RIGHT: #fff 1px solid
}
#butImage LI.navOn {
	BACKGROUND: #ff6600
}
</style>
<script type="text/javascript">
		function showContent(id)
		{
		 
		  $(".io2_box_con").hide();
		  $("#c"+id).show();
		}
		var n=5;
		</script>
		<script type="text/javascript" src="js/indexpicview.js"></script>
</head>
<body>
<div class="container">
<jsp:include page="../head.jsp"/> 
<div class="ge"></div>
<div class="content">
<div class="wrap">
         <div class="left">
	            <div class="io2_box">
		  
								  <div style="MARGIN: 0px; OVERFLOW: hidden; WIDTH: 582px; POSITION: relative; HEIGHT: 348px;">
									  <div id=l1 style="LEFT: 0px; POSITION: absolute; TOP: 0px">
									   <img  id=img51 height=348 src="uploadFile/<s:property value="brandList1[0].image1"/>" width=582  border=0 />
									  </div>
									  <div id=l2 style="LEFT: 582px; POSITION: absolute; TOP: 0px">
									    <img id=img52  height=348 src="uploadFile/<s:property value="brandList1[1].image1"/>" width=582 border=0 />
									  </div>
									  <div id=l3 style="LEFT: 1164px; POSITION: absolute; TOP: 0px">
									    <img id=img53  height=348 src="uploadFile/<s:property value="brandList1[2].image1"/>" width=582  border=0 />
									  </div>
									  <div id=l4 style="LEFT: 1746px; POSITION: absolute; TOP: 0px">
									    <img id=img54 height=348 src="uploadFile/<s:property value="brandList1[3].image1"/>" width=582  border=0 />
									  </div>
									  <div id=l5 style="LEFT: 2328px; POSITION: absolute; TOP: 0px">
									    <img id=img55 height=348 src="uploadFile/<s:property value="brandList1[4].image1"/>" width=582  border=0 />
									  </div>
									  <div id=l0 style="Z-INDEX: 999999; LEFT: 0px; POSITION: absolute; TOP: 0px">
									    
									   </div>
									  <div id=lfloat style="Z-INDEX: 9999999; LEFT: 400px; WIDTH: 250px; POSITION: absolute; TOP: 320px; HEIGHT: 15px">
										  
										    <img id=pnl1 onClick="javascript:picsw('l1');" style="BORDER-TOP-STYLE: none; MARGIN-RIGHT: 5px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" onmouseout=javascript:startauto(); height=15 src="images/pl1.gif" width=25 name=pnl1 />
										  
											<img id=pnl2 onClick="javascript:picsw('l2');" style="BORDER-TOP-STYLE: none; MARGIN-RIGHT: 5px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" onmouseout=javascript:startauto(); height=15 src="images/pl2a.gif" width=25 />
											
											<img id=pnl3 onClick="javascript:picsw('l3');"  style="BORDER-TOP-STYLE: none; MARGIN-RIGHT: 5px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" onmouseout=javascript:startauto(); height=15 src="images/pl3a.gif" width=25 />
											
											<img id=pnl4 onClick="javascript:picsw('l4');" style="BORDER-TOP-STYLE: none; MARGIN-RIGHT: 5px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" onmouseout=javascript:startauto(); height=15 src="images/pl4a.gif" width=25 />
											
											<img id=pnl5 onClick="javascript:picsw('l5');" style="BORDER-TOP-STYLE: none; MARGIN-RIGHT: 5px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" onmouseout=javascript:startauto(); height=15 src="images/pl5a.gif" width=25 />
									   </div>
								
						             </div>
							<div>
			          <div id="c1" class="io2_box_con" style="height:60px;">
			            &nbsp;&nbsp;&nbsp;&nbsp;
			           <s:property value="@groupby.util.UtilsTools@deleteImgStr(brandList1[0].content,150,'...')"/>
			          </div>
			          <div id="c2" class="io2_box_con" style="display:none;height:60px;">
			         &nbsp;&nbsp;&nbsp;&nbsp;
			         <s:property value="@groupby.util.UtilsTools@deleteImgStr(brandList1[1].content,150,'...')"/>
			          </div>
			          <div id="c3" class="io2_box_con" style="display:none;height:60px;">
			          &nbsp;&nbsp;&nbsp;&nbsp;
			           <s:property value="@groupby.util.UtilsTools@deleteImgStr(brandList1[2].content,150,'...')"/>
			          </div>
			          <div id="c4" class="io2_box_con" style="display:none;height:60px;">
			          &nbsp;&nbsp;&nbsp;&nbsp;
			           <s:property value="@groupby.util.UtilsTools@deleteImgStr(brandList1[3].content,90,'...')"/>
			          </div>
			          <div id="c5" class="io2_box_con" style="display:none;height:60px;">
			              &nbsp;&nbsp;&nbsp;&nbsp;
			           <s:property value="@groupby.util.UtilsTools@deleteImgStr(brandList1[4].content,90,'...')"/>
			          </div>
			          </div>
				</div>
		   <div class="pinpai">
		             <div class="pinpai_top"><a  target="_parent">品牌资讯</a>
					 </div>
					 <div class="pinpai_con">
					        <ul>
					        <s:iterator value="brandList2" id="id" status="status">
					        <s:if test="#status.index==0">
					             <li style="border-bottom-width: 1px;border-bottom-style: dotted;border-bottom-color: #CCCCCC;">
					                   <a href="user/branduser!singleBrand.action?currentPage=1&category=<s:property value="category"/>&brandId=<s:property value="id"/>&userId=<s:property value="userId"/>">
									   <div class="pic2" style="background:url(uploadFile/<s:property value="image1"/>) no-repeat -60px -60px;height:120px;width:120px">
									   
									   </div></a>
									   <div class="info2 ">
									         <span ><a href="user/branduser!singleBrand.action?currentPage=1&category=<s:property value="category"/>&brandId=<s:property value="id"/>&userId=<s:property value="userId"/>"><s:property value="title"/></a></span>
									         <br/>
									         &nbsp;&nbsp;&nbsp;&nbsp;
									         <s:property value="@groupby.util.UtilsTools@deleteImgStr(content,150,'')"/>
									    </div>
									     <div class="clear"></div>
							   </li>
					        </s:if>
					       
					        </s:iterator>
							<li>
							<s:iterator value="brandList2" id="id" status="status">
							    <s:if test="#status.index>0">
							    
							         <div class="pic2" >
							         <a href="user/branduser!singleBrand.action?currentPage=1&category=<s:property value="category"/>&brandId=<s:property value="id"/>&userId=<s:property value="userId"/>">
							          <div class="pin_left" style="background:url(uploadFile/<s:property value="image1"/>) no-repeat -60px -60px;height:120px;width:120px">
							          </div></a>
								      <div class="pin_right">
								          <span><a href="user/branduser!singleBrand.action?currentPage=1&category=<s:property value="category"/>&brandId=<s:property value="id"/>&userId=<s:property value="userId"/>"><s:property value="@groupby.util.UtilsTools@deleteImgStr(title,8,'')"/></a></span><br/>
								          <div style="word-wrap:break-word; word-break:break-all;overflow:hidden;">
									         &nbsp;&nbsp;&nbsp;&nbsp;<s:property value="@groupby.util.UtilsTools@deleteImgStr(content,50,'...')"/>
								          </div>
								      </div>
							      </div> 
							    </s:if>
							     </s:iterator>
							 </li>
							</ul>
					 </div>
		   </div>
	
</div>
  
	<div class="right">
        <ul class="ritop">
           <li>
	             <a href="user/branduser!singleBrand.action?currentPage=1&category=<s:property value="brandList1[6].category"/>&brandId=<s:property value="brandList1[6].id"/>&userId=<s:property value="brandList1[6].userId"/>">
	             <img src="uploadFile/<s:property value="brandList1[5].image1"/>"  class="img2" width="300" height="133"/>
	             </a>
	            
	             
				&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="@groupby.util.UtilsTools@deleteImgStr(brandList1[5].content,70,'...')"/>
            </li>
          
               <li class="no">
               <a href="user/branduser!singleBrand.action?currentPage=1&category=<s:property value="brandList1[6].category"/>&brandId=<s:property value="brandList1[6].id"/>&userId=<s:property value="brandList1[6].userId"/>">
		     <img src="uploadFile/<s:property value="brandList1[6].image1"/>"  class="img2" width="300" height="133"/>
		     </a>
		          
				&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="@groupby.util.UtilsTools@deleteImgStr(brandList1[6].content,70,'...')"/>					         
		 </li>
		 
		</ul>
		<div  class="img4">
		<a href="<s:property value="#application.systemInfor.adImage[8].split(',')[1]"/>" target="_blank">
		<img src="uploadFile/ad/<s:property value="#application.systemInfor.adImage[8].split(',')[0]"/>"  width="300" height="239"/></a>
		</div>
	    
		<div class="box2"><div class="box2_top"><a >最新热点</a></div>
		<div class="box2_con"> 
		  <ul class="redian">
		  <s:iterator value="brandList3" id="id" status="status">
		     <s:if test="#status.index+1==brandList3.size()">
		        <li class="no">
		     </s:if>
		     <s:else>
		       <li>
		     </s:else>
		       <span><a href="user/user!brandUserPage.action?currentPage=1&userId=<s:property value='#id[1].userId'/>">[<s:property value="#id[1].username"/>]</a></span>
		           <a href="user/branduser!singleBrand.action?currentPage=1&category=<s:property value="#id[0].category"/>&brandId=<s:property value="#id[0].id"/>&userId=<s:property value="#id[0].userId"/>" target="_parent">
		             <s:if test="%{#id[0].title.length()>20}"> 
		               <s:property value="#id[0].title.substring(0,20)+'...'" />
		             </s:if>
		             <s:else>
		              <s:property value="#id[0].title" />
		             </s:else>
		           </a>
		       </li>
		  </s:iterator>
		   </ul>
		 </div>
		</div>		
	  </div>
	 
	 <div class="clear"></div>
    </div>
	<div  class="imm" >
	<a href="<s:property value="#application.systemInfor.adImage[8].split(',')[1]"/>" target="_blank">
	<img src="uploadFile/ad/<s:property value="#application.systemInfor.adImage[8].split(',')[0]"/>" width="910" height="127" class="img4"/></a></div>
<div class="wrap">


         <div class="left">
		
		
		
		<div class="pinpai2">
		     <div class="pinpai_top"><a  >品牌优惠</a></div>
			 <div class="pinpai_con">
			    <ul>
			    <s:iterator value="categoryList" id="cid" status="status">
			    <s:if test="#status.index<4">
			    
			    <li>
			      <s:if test="#status.index==0">
				         <s:set name="brandList" value="brandList4"></s:set>
				       </s:if>
				       <s:elseif test="#status.index==1">
				         <s:set name="brandList" value="brandList5"></s:set>
				       </s:elseif>
				       <s:elseif test="#status.index==2">
				         <s:set name="brandList" value="brandList6"></s:set>
				       </s:elseif>
				       <s:elseif test="#status.index==3">
				         <s:set name="brandList" value="brandList7"></s:set>
				       </s:elseif>
			      <div class="pic3">
			         <div class="pic3_top"><img src="uploadFile/<s:property value="#brandList[0][0].image1"/>" width="97" height="70"/></div>
			         <a ><s:property value="categoryName"/></a>
			      </div>
				  <div class="info3">
				   <ul class="ull">
				       
                      <s:iterator value="brandList" id="id" status="status">
                        <li>
				        <span><a href="user/user!brandUserPage.action?currentPage=1&userId=<s:property value='#id[1].userId'/>">[<s:property value="#id[1].username"/>]</a></span>
				        <a href="user/branduser!singleBrand.action?currentPage=1&category=<s:property value="#id[0].category"/>&brandId=<s:property value="#id[0].id"/>&userId=<s:property value="#id[0].userId"/>" target="_parent">
					        <s:if test="%{#id[0].title.length()>25}"> 
			               <s:property value="#id[0].title.substring(0,25)+'...'" />
			             </s:if>
			             <s:else>
			              <s:property value="#id[0].title" />
			             </s:else>
				        </a>
				       </li>
                      </s:iterator>
				    </ul>
				   </div>
				<div class="clear"></div>
				</li>
				</s:if>
				</s:iterator>
	
				</ul>
			 </div>
		</div>
		
		
		<div class="pinpai4">
		     <div class="pinpai_top"><a  target="_parent">热点品牌推荐</a><span style="color:#999999; font-size:12px;">.............................<a href="user/branduser!brandUserListMore.action?currentPage=1" target="_blank" style="color:#999999; font-size:12px;" >更多</a></span>
			 </div>
			 <div class="pinpai_con">
			    <div class="hh2">
			     <s:iterator value="brandUserList" id="id" status="status">
			        <div class="boxm1">
			            <div class="boxm_img">
			               <a href="user/user!brandUserPage.action?currentPage=1&userId=<s:property value="userId"/>">
			                  <s:if test="image.equals('')">
						          <img src="uploadFile/img.gif"   width=108 height=109 />
						      </s:if>
						      <s:else>
						         <img src="uploadFile/<s:property value="image"/>" width=108 height=109/>
				               </s:else>
			               </a>
			            </div>
			               <a href="user/user!brandUserPage.action?currentPage=1&userId=<s:property value="userId"/>" ><s:property value="eusername"/><br/><s:property value="username"/></a> 
			        </div>
			     </s:iterator>
				    
					 </div>
			 </div>
		</div>
		
		
		
</div>
	  
	  
	  
	  
	<div class="right">
       
		
		
		
		
		
	 <div class="picture">
		        <div class="box2_top"><a  target="_parent">图片欣赏</a></div>
				<div class="box2_con">
				      <ul class="pict">
					      <s:iterator value="pictureList" id="id" status="status">
					           <li>
						   <div class="pict_left" ><s:property value="#id[1]"/>
						   </div>
							   <div class="pict_right"> 
							       <a href="user/branduser!showPhotoList.action?currentPage=1&userId=<s:property value="#id[2][0].userId"/>&picId=<s:property value="#id[2][0].id"/>&photoName=<s:property value="#id[2][0].photoName"/>">
							         <div class="pict_leff" style="background:url(uploadFile/<s:property value="#id[2][0].face"/>) no-repeat -50px -50px;height:107px;width:101px">
							            
							         </div>
							         </a>
							         <s:if test="!#id[2][1].face.equals('')">
							         <a href="user/branduser!showPhotoList.action?currentPage=1&userId=<s:property value="#id[2][0].userId"/>&picId=<s:property value="#id[2][1].id"/>&photoName=<s:property value="#id[2][1].photoName"/>">
							            <div class="pict_rigg" style="background:url(uploadFile/<s:property value="#id[2][1].face"/>) no-repeat -50px -50px;height:107px;width:101px">
							              
							            </div>
							            </a>
							         </s:if>
							         
							   </div>
							   <div class="clear"></div>
							   </li>
					      </s:iterator>

					  </ul>
				</div>
		 </div>
		
		
		
<div class="box2">
		      <div class="box2_top"><a  target="_parent">最新评论</a></div>
			  <div class="box2_con">
			  <ul class="ul2">
			     <s:iterator value="#request.groupbyCriticismList" id="id" status="status">
									   <s:set name="urlContent">user/user!brandUserCriticism.action?userId=<s:property value="#id[5]"/></s:set>
								      <s:if test="#id[6]==2">
					                      <s:set name="url">user/user!singleUserPage.action?currentPage=1&userId=<s:property value="#id[5]"/></s:set>
									   </s:if>
									   <s:elseif test="#id[6]==3">
									      <s:set name="url">user/user!groupbyUserPage.action?currentPage=1&userId=<s:property value="#id[5]"/></s:set>
									   </s:elseif>
									   <s:elseif test="#id[6]==4">
									      <s:set name="url">user/user!brandUserPage.action?currentPage=1&userId=<s:property value="#id[5]"/></s:set>
									   </s:elseif>
								       <li>
										<div class="pic">
										   <a href="<s:property value="url"/>">
											<s:if test="#id[3].equals('')">
					                 			<img src="uploadFile/img.gif" width=60 height=60/>
								            </s:if>
								            <s:else>
								                 <img src="uploadFile/<s:property  value="#id[3]"/>" width=60 height=60/>
								            </s:else>
								            </a>
										</div>
										<div class="info">
											<div class="xin">
												<table width="100%" border="0" cellspacing="0"
													cellpadding="0">
													<tr>
														<td width="65%" align="left" valign="middle">
															&nbsp;&nbsp;&nbsp;&nbsp;<s:property value="#id[2]"/>:<a href="<s:property value="url"/>" class="ziti"><s:property value="#id[4]"/></a>
														</td>
														
													</tr>

												</table>

											</div>
											<a href="<s:property value="urlContent"/>">
											<s:if test="%{#id[1].length()>50}">
											    &nbsp;&nbsp;&nbsp;&nbsp;<s:property value="#id[1].substring(0,50)"/>...
											</s:if>
											<s:else>
											    &nbsp;&nbsp;&nbsp;&nbsp;<s:property value="#id[1]"/>
											</s:else>
											</a>
										</div>
										<!--end info-->
										<div class="clear"></div>
									  </li>
									 
								   </s:iterator>
               </ul>

		</div>
		
		
</div>
		
		
		
		<!---------------------end box2-------------------------------------------------------->
		
		
	  </div>
	 
	 <div class="clear"></div>
	  
	
	  
    </div>
	  
</div>

<div id="foot">
<jsp:include page="../bot.jsp"></jsp:include>
</div>



</div>
</body>
</html>
